<?xml version="1.0" encoding="utf-8"?>
<openerp>
	<data>
		<record id="view_reconcile_bank_cancel" model="ir.ui.view">
			<field name="name">view.reconcile.bank.cancel</field>
			<field name="model">reconcile.bank.cancel</field>
			<field name="type">form</field>
			<field name="arch" type="xml">
				<form string="Cancel Reconcile Bank">
 					<field name="account_check_ids" domain="[('checked_by_user','=',True),('account_id.bank_account','=',True)]">
						<tree>
							<field name="journal_id"/>
							<field name="ref"/>
							<field name="account_id"/>
							<field name="debit"/>
							<field name="credit"/>
							<field name="currency_id"/>
							<field name="amount_original"/>
							<field name="exrate"/>
						</tree>
					</field>
					<footer>
	                    <button string="Unapprove" name="cancel_bank_reconcile" type="object" default_focus="1" class="oe_highlight"/>
	                    or
	                    <button string="Cancel" class="oe_link" special="cancel"/>
					</footer>
				</form>
			</field>
		</record>
		
		<record id="action_view_reconcile_bank_cancel" model="ir.actions.act_window">
			<field name="name">Cancel Reconcile Bank</field>
			<field name="type">ir.actions.act_window</field>
			<field name="res_model">reconcile.bank.cancel</field>
			<field name="view_type">form</field>
			<field name="view_mode">form</field>
			<field name="target">new</field>
			<field name="help">This menu for unreconcile account with bank.</field>
		</record>

		<menuitem name="Cancel Reconcile Bank" parent="account.menu_finance_periodical_processing"
			action="action_view_reconcile_bank_cancel" id="menu_reconcile_bank_cancel" sequence="27"/>

	</data>
</openerp>
